home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: miker3@ix.netcom.com (Mike Rubenstein)
- Newsgroups: comp.lang.c++
- Subject: Re: IMPORTANT!!!!!!!!!!!!!!!!!!!!!
- Date: Thu, 01 Feb 1996 04:39:16 GMT
- Organization: Netcom
- Message-ID: <311043bd.32347008@nntp.ix.netcom.com>
- References: <4epb8s$9gp@reader2.ix.netcom.com>
- NNTP-Posting-Host: ix-dc11-20.ix.netcom.com
- X-NETCOM-Date: Wed Jan 31 8:39:45 PM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- jeremyx@ix.netcom.com(Jeremy Johnston ) wrote:
-
- >
- >
- >
- > For some reason i can never get the \ to print! How do you get
- > the \ to show up on the screen when you run the program??
- >
- > ex:
- >
- >
- > printf(" i can never get the \ to print");
- > printf(" do you like dogs\cats?");
- >
- > after i compile the program & run it the "\" doesn'y show up?
- > please help!?
- >
-
- In C++ literal strings, \ is an escape character. You need something
- like
-
- printf(" i can never get the \\ to print");
- printf(" do you like dogs\\cats?");
-
-
- Michael M Rubenstein
-